package com.springboot42.dao;

import com.springboot42.pojo.Mayor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MayorMapper {
    //展示所有市长信息
    public List<Mayor> findAllMayor();
    //通过名字查找市长信息
    public List<Mayor> searchMayorByName(String mname);
    //增加新市长
    public int addMayor(Mayor mayor);
    //删除信息
    public int deleteMayorById(Integer cid);
    //修改市长_城市信息
    public int updateMayor(Mayor mayor);
}
